<?php

namespace Taxx\KernelBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Taxx\KernelBundle\Entity\Lecture
 *
 * @ORM\Table(name="lecture")
 * @ORM\Entity
 */
class Lecture
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var Course
     *
     * @ORM\ManyToOne(targetEntity="Course")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="course_id", referencedColumnName="id")
     * })
     */
    private $course;

    /**
     * @var string $name
     *
     * @ORM\Column(name="name", type="string", length=100, nullable=false)
     */
    private $name;
    
    /**
     * @var datetime $from
     *
     * @ORM\Column(name="registeres_at", type="datetime", nullable=false)
     */
    private $from;
    
    /**
     * @var datetime $until
     *
     * @ORM\Column(name="registeres_at", type="datetime", nullable=false)
     */
    private $until;

    /**
     * @var integer $public
     *
     * @ORM\Column(name="public", type="integer", nullable=false)
     */
    private $public;
    
     /**
     * @var string $password
     *
     * @ORM\Column(name="password", type="string", length=50, nullable=false)
     */
    private $password;
    
    public function getId() {
        return $this->id;
    }

    public function setId($id) {
        $this->id = $id;
    }

    public function getCourse() {
        return $this->course;
    }

    public function setCourse($course) {
        $this->course = $course;
    }

    public function getName() {
        return $this->name;
    }

    public function setName($name) {
        $this->name = $name;
    }

    public function getFrom() {
        return $this->from;
    }

    public function setFrom($from) {
        $this->from = $from;
    }

    public function getUntil() {
        return $this->until;
    }

    public function setUntil($until) {
        $this->until = $until;
    }

    public function getPublic() {
        return $this->public;
    }

    public function setPublic($public) {
        $this->public = $public;
    }

    public function getPassword() {
        return $this->password;
    }

    public function setPassword($password) {
        $this->password = $password;
    }


}

?>
